package cn.mothin.action.setup;

import org.springframework.beans.factory.annotation.Autowired;

import cn.mothin.frame.core.annotation.NeedSuper;
import cn.mothin.frame.core.base.BaseAction;
import cn.mothin.service.setup.InitService;
import cn.mothin.vo.setup.InitForm;

@SuppressWarnings("serial")
public class InitAction extends BaseAction {
	private InitForm initForm = new InitForm();
	@Autowired
	private InitService initService;

	@Override
	public Object getModel() {
		return initForm;
	}

	@NeedSuper
	public String execute() {
		return SUCCESS;
	}

	@NeedSuper
	public String start() {
		initService.init();
		return null;
	}
}
